Merge conflicts solutioned
[RRRRHHHH_Code] / ruralHouses client / src / gui / AdminMenuGUI.java
diff --git a/ruralHouses client/src/gui/AdminMenuGUI.java b/ruralHouses client/src/gui/AdminMenuGUI.java
new file mode 100644 (file)
index 0000000..eef2ba4
--- /dev/null
@@ -0,0 +1,84 @@
+package gui;
+
+import java.awt.Frame;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.GroupLayout;
+import javax.swing.GroupLayout.Alignment;
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+import javax.swing.border.EmptyBorder;
+
+public class AdminMenuGUI extends JFrame {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 1L;
+       private JPanel contentPane;
+
+
+       
+       /**
+        * Create the frame.
+        */
+       public AdminMenuGUI() {
+               
+               
+               this.setTitle("Administrator Menu");
+               this.getContentPane().setLayout(null);
+               setBounds(100, 100, 450, 473);
+               contentPane = new JPanel();
+               contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
+               setContentPane(contentPane);
+               //TODO BOTH BUTTONS ARE TO MODIFY
+               JButton btnAdd = new JButton("Add requests");
+               btnAdd.addActionListener(new ActionListener() {
+                       public void actionPerformed(ActionEvent e) {
+                               Frame a = new listOfAdditionRequestsGUI();
+                               a.setVisible(true);
+                       }
+               });
+               
+               JButton btnDel = new JButton("Delete Requests");
+               btnDel.addActionListener(new ActionListener() {
+                       public void actionPerformed(ActionEvent e) {
+                               Frame a = new listOfRemovalRequestsGUI();
+                               a.setVisible(true);
+                       }
+               });
+               
+               JButton btnOwneraddition = new JButton("OwnerAddition");
+               btnOwneraddition.addActionListener(new ActionListener() {
+                       public void actionPerformed(ActionEvent e) {
+                               Frame a = new listOfOwnerAddittionRequests();
+                               a.setVisible(true);
+                       }
+               });
+               GroupLayout gl_contentPane = new GroupLayout(contentPane);
+               gl_contentPane.setHorizontalGroup(
+                       gl_contentPane.createParallelGroup(Alignment.LEADING)
+                               .addGroup(gl_contentPane.createSequentialGroup()
+                                       .addGap(115)
+                                       .addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING, false)
+                                               .addComponent(btnOwneraddition, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+                                               .addComponent(btnDel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)
+                                               .addComponent(btnAdd, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE))
+                                       .addContainerGap(145, Short.MAX_VALUE))
+               );
+               gl_contentPane.setVerticalGroup(
+                       gl_contentPane.createParallelGroup(Alignment.LEADING)
+                               .addGroup(gl_contentPane.createSequentialGroup()
+                                       .addGap(62)
+                                       .addComponent(btnAdd, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
+                                       .addGap(58)
+                                       .addComponent(btnDel, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
+                                       .addGap(52)
+                                       .addComponent(btnOwneraddition, GroupLayout.DEFAULT_SIZE, 79, Short.MAX_VALUE)
+                                       .addContainerGap())
+               );
+               contentPane.setLayout(gl_contentPane);
+       }
+}